<?php

namespace support\register;

class Factory
{
    const USERNAME_PASSWORD = 1;    //用户名密码注册

    const MOBILE_CAPTCHA = 2;   //手机验证码注册

    const WECHAT_MINI_PROGRAM = 2;  //微信小程序注册

    public static function createInstance($type)
    {
        switch ($type) {
            default:
                throw new \Exception('不支持的注册方式');
//            case self::USERNAME_PASSWORD:

        }
    }


}